home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / being there / How To & FAQ's / mail_explained < prev    next >
Text File  |  1993-09-13  |  24KB  |  467 lines

  1.  
  2.                     Obtaining Host and Address Information
  3.  
  4.                                    Ron Ray
  5.                             Network Services Group
  6.                          Homewood Academic Computing
  7.                            Johns Hopkins University
  8.                               (draft manuscript)
  9.  
  10.  
  11.  
  12. Electronic mail is one of the most popular facilities used on wide area
  13. networks. Users separated by hundreds or thousands of miles can exchange
  14. messages and documents on-line, usually in a small period of time. Like
  15. U.S. postal mail, electronic mail uses an addressing scheme to ensure
  16. correct delivery of messages. Unlike U.S. postal mail, the form of the
  17. electronic mail address varies from one network to the next. In general,
  18. an electronic mail address is composed of a username and a computer host
  19. name. Unfortunately, there is no general scheme for disseminating host
  20. names and usernames.           
  21.  
  22. Finding information about a host on a wide-area network can be
  23. surprisingly difficult. One common problem involves finding information 
  24. about a username and a host name when only a personal name and an
  25. organization name is available. The best solution to this problem is to
  26. contact the person by mail or phone and ask for their username and
  27. network address. Unfortunately, this is not always possible. The user
  28. may not be available or they may not know their network address. Other
  29. common problems include finding a network address when only the host
  30. name is known and finding a username when the network address is known
  31. but the username is not known. If there is no  way to contact the
  32. intended recipient by mail or phone, a detective game must be played
  33. using whatever resources a given network provides. These  resources vary
  34. from network to network. They are often indifferently documented and
  35. sometimes several overlapping resources are available on the same
  36. network. The purpose of this document is to acquaint the reader with
  37. some of the resources that are available and how they are used.            
  38.                                                                  
  39. I. Bitnet. The Bitnet is a wide-area network of about 3000 hosts
  40. connected mostly by point-to-point links. Address information is
  41. probably easier to  come by on the Bitnet than other wide area networks.
  42. This is due to several factors, One, all Bitnet host names are included
  43. in a single file that's kept on every host connected to the Bitnet. An
  44. organization name is usually included following the Bitnet address. It's
  45. possible to search this hosts file using the organization name as the
  46. search string, and find the host address or addresses associated with
  47. this organization. The name and location of this file should be obtained
  48. from the system administrator since it varies from system to system.
  49. Second, there is a central facility which provides a database,
  50. informational files and other resources about Bitnet. Finally, there are
  51. a variety of other hosts, called listservs, that  provide files,
  52. databases of usernames and other resources. 
  53.                                                                           
  54. The Bitnet Information Center  keeps files of host names, host
  55. information, gateways to other networks, etc. on line for retrieval. In
  56. addition, some files can be searched with a database server which will
  57. return, via mail, only those records that are selected by the search.
  58. The host name associated with the Bitnet information center is Bitnic.
  59.                                                               
  60. I.1. Netserv. A list of files available from Bitnic can be retrieved by 
  61. sending the following interactive command to Bitnic's file server 
  62. (named netserv):
  63.                                                                         
  64.   $ send  netserv@Bitnic get netserv filelist  ! for VMS machines running JNET
  65.  
  66.    tell netserv at Bitnic get netserv filelist  ! for VM/CMS machines
  67.  
  68. Note, most of these files are lists of other files that can be received.
  69. A particular file can be retrieved with the command:                    
  70.  
  71.      $ send netserv@Bitnic get <filename> <filetype> ! for VMS machines
  72.  
  73.      tell netserv at Bitnic get <filename> <filetype> ! for VM/CMS machines
  74.  
  75. One important piece of information that can be retrieved in this fashion
  76. is the so-called node entry. This record contains things like the
  77. electronic mail address of the host administrator, the type of computer
  78. etc. Sometimes the Bitnet host name is known but the mail recipient's
  79. username is not known. In this case, the host node entry can be
  80. consulted for the postmaster's electronic mail address. The postmaster
  81. can be asked, via mail, for information about the desired address.
  82. The node entry information can be obtained with the following command:
  83.                                                                 
  84.    $ send netserv@Bitnic get nodentry <nodename> ! for VMS machines running 
  85.                                                    JNET
  86.  
  87.      tell netserv at Bitnic get nodentry <nodename> ! for VM/CMS machines
  88.  
  89. More information about using netserv at Bitnic can be obtained with the
  90. command:                                                               
  91.  
  92.      $ send netserv@Bitnic get helpfile             ! for VMS machines running 
  93.                                                       JNET
  94.  
  95.      tell netserv at Bitnic get helpfile             ! for VM?/CMS machines
  96.  
  97. It's also worth noting that netserv commands can be placed in the first
  98. line of a mail message sent to netserv@Bitnic.                      
  99.  
  100. I.2. Database. Bitnic also provides a database server that allows
  101. selective access to its database files. One useful thing that can be
  102. done with  database is to find all the Bitnet sites in a particular
  103. state. For example, the command:                                           
  104.  
  105.  
  106.     $ Send database@Bitnic FIND STATE DC (FORMAT NAMESFRM
  107.  
  108.      tell netserv at Bitnic FIND STATE DC (FORMAT NAMESFRM
  109.          
  110. returns a list of all Bitnet hosts in Washington DC. Individual host 
  111. information can be retrieved by sending the command:                 
  112.  
  113.     $ Send database@Bitnic FIND HOST <hostname>
  114.  
  115.     tell database at Bitnic FIND HOST <hostname>
  116.  
  117. Database can also be used to search mailing list archives. More will be
  118. said about this later.                                                     
  119.  
  120. Internet hosts without direct Bitnet access can send send mail commands
  121. to database@Bitnic. To do this they must register with the database 
  122. server and receive a password. This procedure, as well as general
  123. database help, is provided by sending mail to database@Bitnic with the
  124. command "help" in the first line of text.                                                 
  125.  
  126. I.3. Listservs. Listserv is software developed for IBM Bitnet hosts. The
  127. original function of this software was to service mailing lists. Since
  128. then the software has been updated to offer other features such as file
  129. service, user directory service , on-line help and a database server. A
  130. list of listserv servers (and other Bitnet servers) can be obtained by
  131. sending the command:
  132.                                                                         
  133. $ send service@Bitnic get Bitnet servers
  134.  
  135. tell service at Bitnic get Bitnet servers
  136.  
  137. One of the things that is contained in this file is a list of listsrv's
  138. that have user directory services. If it's necessary to find someone's
  139. username at one of these hosts, the command:                           
  140.  
  141. $ send listserv@<nodename> /whois  <search-string>
  142.  
  143. tell listserv at <nodename> /whois <search-string>
  144.  
  145. where search-string is a personal name or some substring of a personal
  146. name, will return the username associated with the search string (if its
  147. in their database). Some listserv's maintain a general user directory
  148. service  for users anywhere on the Bitnet. Unfortunately, there is no
  149. simple way to  find out who subscribes to these listservs. The listserv
  150. at the host marist has the largest collection of usernames since it
  151. keeps the names of anyone who who ever subscribed to a Bitnet mailing
  152. list.                         
  153.  
  154. A list of Bitnet related files can be obtained from listserv by means of the
  155. command:
  156.                       
  157. $ send listserv@Bitnic get netinfo filelist
  158.  
  159. tell listserv at Bitnic get netinfo filelist
  160.  
  161. Listservs also have a database server. Documentation for the database
  162. server is contained in the file listdb memo.                         
  163.  
  164. II. The Internet. The Internet is a rapidly growing wide-area network of
  165. more  than 100,000 hosts. It is not really a single network. Instead, it
  166. is a network of networks, partitioned in a tree-like fashion. The
  167. partitions, and sub-partitions, etc. are called domains. Responsibility
  168. for the internet domains is largely local to the domain. Each domain has
  169. its own organization and contacts. Information about hosts associated
  170. with a domain are provided by the domain name service. Several hosts
  171. associated with a given domain are designated as nameservers for the
  172. domain. The nameservers keep information about the other hosts
  173. associated with the  domain and /or other nameservers associated with
  174. further partitions of their  domain. Internet hosts needing address
  175. information about hosts associated  with a domain automatically query
  176. the appropriate nameserver. Note, internet  hosts running  old versions
  177. of the internet communications software, tcp/ip, may be unable to do
  178. this. These hosts  have to resort to using large but incomplete tables
  179. of internet hosts.  Overall responsibility for the internet is
  180. associated with the Network Information Center, NIC. NIC provides
  181. information about first and second  level domains, manages the
  182. registration of domains and provides general  support for the internet.     
  183.  
  184. Troubles with host names and addresses and with E-mail addresses can
  185. often be resolved by first using facilities provided by nic, such as
  186. whois, and then manually querying the Domain Name Service for local
  187. domain  information.                                                
  188.  
  189.  
  190. II.1. The whois database maintains information about hosts, domains and
  191. users. Information from the database can be obtained by running a whois
  192. client program from a remote host, by telneting to nic.ddn.mil and
  193. running the whois program interactively, or by sending mail to
  194. server@nic.ddn.mil with a database query in the subject line. Note,
  195. telnet is the remote login application provided with tcp/ip.                  
  196.  
  197. Not all hosts on the internet are in the whois database. Instead,
  198. information about the top two domains is maintained. This information
  199. includes an E-mail address of a contact person for that domain. Some
  200. individual hosts and individual usernames are also registered with the
  201. NIC and therefore available from whois. 
  202.                                                                  
  203. Information about domains can be obtained by issuing the following
  204. command:
  205.  
  206. whois domain  jhu.edu      ! where jhu.edu is the domain for 
  207.                ! which information is desired
  208.  
  209. This command can be included in the subject line of a mail message sent
  210. to service@nic.ddn.mil. Information returned by this query includes the
  211. E-mail address of the responsible person for the domain, organization
  212. name and address and addresses of the domain name servers.
  213.                                                                   
  214. A wildcard search can be done by including a dot or dots after the
  215. argument.  This will match all records whose specified field begins with
  216. the argument. Note, a general search on all fields of the database can
  217. be achieved by leaving off the keyword argument and simply typing in the
  218. text to be searched for.  For example, the following query would return
  219. several records, one of which would be the domain jhu.edu:                 
  220.  
  221. whois jhu...
  222.  
  223. If a general search is done and/or if a wildcard is used many database
  224. entries may be located. In this case a summary of the records found will
  225. be returned. Full information on a particular record can then be
  226. requested by specifying the desired record more completely as, for
  227. example, "domain jhu.edu", or by  specifying the record's handle in the
  228. database query. A record's handle is a unique identifier associated with
  229. each record in the database. The handle is always enclosed in
  230. parentheses and always follows the  record's name. A query of the form:
  231.               
  232. whois handle net-jhu
  233.  
  234. will return just the record associated with the handle net-jhu. Some
  235. record types have subdisplays associated with them. A subdisplay is
  236. simply additional information associated with a record. For example,
  237. host records have a subdisplay of registered users. The output keyword
  238. of "expand"  forces the output of all subdisplays associated with a
  239. record. The following query will show all the registered users
  240. associated  with the host jhunix.hcf.jhu.edu:                              
  241.  
  242. whois host expand jhunix.hcf.jhu.edu
  243.  
  244.  
  245. If some information is known about an internet hosts domain, 
  246. organization name, or other associated field, whois can be used to
  247. initiate a hierarchical search for the necessary information. Locating
  248. the domain or network record will provide a E-mail address. Inquiries
  249. could be made to this address for other E-mail addresses  associated
  250. with lower level domains or individual hosts that might be able to
  251. provide help. Alternately, the domain service addresses provided could
  252. be used with another utility called nslookup to obtain further
  253. information. Finally, the desired host or E-mail address information may
  254. be directly obtainable from whois. The proportion of registered to
  255. non-registered hosts and addresses is small, however. The query:   
  256.  
  257. whois help
  258.  
  259. can be used to obtain more information about the use of whois. It should
  260. be noted that some client versions of whois have a  different command 
  261. syntax then that described above.                             
  262.  
  263. II.2. A number of online files are kept at NIC. These include files
  264. containing addresses of responsible persons for domains, files 
  265. detailing host administrator duties, etc. They can be accessed by
  266. anonymous FTP or by sending mail to service@nic.ddn.mil. To get a list
  267. of  what types of files are available, send mail to service@nic.ddn.mil
  268. with the command "help" in the subject line: To retrieve a specific
  269. file, use the command "send XXX" where XXX is a fully specified
  270. filename. For example, host administrator addresses are contained in the
  271. file named hadminbyaddr.txt located in the netinfo directory. The
  272. command:                                    
  273.  
  274. send netinfo:hadminbyaddr.txt
  275.  
  276. when included in the subject line of a mail message to
  277. service@nic.ddn.mil can be used to obtain the file by mail.                
  278.  
  279. II.3 Nslookup.  Nslookup is a utility that allows users to query
  280. nameservers.  It can be used to get addresses associated with host
  281. names, host names associated with addresses, mail addresses of the
  282. server manager, as well as to locate a server  associated with a
  283. particular domain.                         
  284.  
  285. Some tcp/ip implementations don't have the ability to use nameservers.
  286. Instead, they keep tables of addresses and host names. If these hosts
  287. need to access another host whose address is not in their table, they
  288. can consult someone with access to nslookup to obtain the address.
  289. Addresses associated with a particular domain  name can be obtained by
  290. typing the domain name in response to the nslookup prompt. For example,
  291. the address associated with the host name jhmail.hcf.jhu.edu would be
  292. obtained as follows:                               
  293.                                                                               
  294. $ nslookup > jhmail.hcf.jhu.edu
  295.  
  296. Sometimes users will have a particular address and will want to know the
  297. host  name associated with the address. To obtain a host name 
  298. associated with a particular address the address is entered with the
  299. bytes reversed followed by .in-addr.arpa. For example, to get the host
  300. name  associated with the address 128.220.2.7 type:                      
  301.      
  302. $ nslookup 
  303. nslookup> set query=ptr                                        
  304. nslookup> 7.2.220.128.in-addr.arpa
  305.  
  306. The nameservers allow hosts that are not really internet hosts to appear
  307. to be on the internet. This is done by means of mail exchange or MX
  308. records.  Unfortunately, not all mailers can do MX lookups.  When the
  309. situation occurs where a correct appearing address doesn't work with
  310. mail or where a simple nslookup query for the address doesn't work, the
  311. nameserver should be queried for the existence of an MX record. This can
  312. be done by  entering:                                             
  313.  
  314. nslookup> set query=mx 
  315. nslookup> enter-the-address-here
  316.  
  317. If an MX record exists for an address and if a particular mailer can't
  318. do MX  lookups, an address of the following form will probably work:
  319.  
  320. username%mail-address@MX-address
  321.  
  322. Nslookup can be used to provide information about who maintains a
  323. domain's nameserver. This user, the hostmaster, may be able to provide
  324. additional information when contacted via E-mail. If a nameserver
  325. associated with a particular domain is known, the procedure is as
  326. follows:
  327.                                                                  
  328. nslookup>server enter-the-server-name-here
  329.   
  330. nslookup> set debug
  331.  
  332. nslookup>  enter-hostname-here
  333.  
  334. A variety of debugging information will be returned, one item of which
  335. is the E-mail address of the hostmaster. The relevant line of output
  336. will begin with the string "mail addr =" . The mail address is in the
  337. form:
  338.                                                                              
  339. username.hostname.domain-name
  340.  
  341. and will have to be changed to:
  342.  
  343. username@hostname.domain-name
  344.  
  345. In the above situation, the address of the nameserver associated with a
  346. given domain is often not known. A local nameserver can be used to
  347. provide this information in the debug mode by giving it a dummy address
  348. consisting of a "made-up"hostname followed by a correct domain portion
  349. of the address. For example, if information about the umd.edu domain
  350. nameservers is needed, nslookup would be placed in debug mode and given
  351. the address anything.umd.edu. The query will probably fail but the 
  352. debugging information returned will include the namesever addresses
  353. associated with the domain.                                            
  354.  
  355. A listing of hosts by domain can be obtained from nslookup by using the
  356. "ls <domain>" command where domain is the domain associated with the
  357. nameserver.
  358.                                                                        
  359. Bitnet users with no direct access to nslookup can still get the basic
  360. nslookup information by sending mail to nslookup@sh.cs.net. Domain style
  361. addresses can be placed in the body of the message, one per line, and
  362. mail will be returned listing all the nameserver records for the named
  363. domains. 
  364.                                                                   
  365.  
  366. III.UUCP. The uucp software developed for Unix systems has been used to
  367. create a wide-area network. This network is even less centralized than
  368. the internet. Access to this network is gained by running uucp and
  369. getting dial-up access to another host already on the network. There are
  370. no official requirements for membership and hosts can join or leave the
  371. network in an unobtrusive fashion. This informality frequently produces
  372. problems with addressing.  The Uucp project was created to deal with
  373. these problems. "Official" uucp hosts register their name with the Uucp
  374. project at host uunet. Maps of the uucp network are available from uunet
  375. and can be used by software named Pathalias to route information between
  376. uucp hosts. Formerly, users had to specify the entire route in a so
  377. called "bang style" address. A  "bang style" address looks like
  378. hosta!hostb!hostc!username. A mail message sent with this address would
  379. travel to hosta, then to hostb and finally to hostc.
  380.  
  381. Users connected to the uucp network rarely have to specify routing
  382. information in the E-mail address. Pathalias usually handles the
  383. routing. Occasionally, however, some problem will arise where some
  384. routing information must be obtained, such as fixing a garbled return
  385. address. In addition, since uucp hosts can have a domain style name,
  386. it is sometimes neccessary to determine whether a host is really a
  387. uucp host, or whether it's an internet host.
  388.  
  389. Interactive information about a UUCP host can be obtained by sending an
  390. interactive Bitnet command of the following form:                       
  391.  
  392. $ send/command psuvax1 uuhosts  <uucp-host-name>
  393.  
  394. SM RSCS CMD PSUVAX1 uuhosts  <uucp-host-name>
  395.  
  396. Information about the path to the host can similarly be obtained by:
  397.  
  398. $ send/command  psuvax1 uupath <uucp-host-name>
  399.  
  400. SM RSCS CMD PSUVAX1 uupath <uucp-host-name>
  401.  
  402. The UUCP maps can be examined to get items like the postmaster address,
  403. mailing address, etc. The maps are posted in the USENET group
  404. comp.mail.maps and must be unpacked or uncompressed. These maps are also 
  405. available for anonymous FTP from uunet.uu.net in directory uumap. 
  406.                                                                                
  407. IV. Info-nets. Info-nets is a mailing list that provides information
  408. about addresses, location of users and gateways, and similar matters.
  409. Questions can be sent to the list and experienced members of the list
  410. will attempt to provide answers. The list can be subscribed to by
  411. sending a subscription request to info-nets-requests@think.com.
  412. Questions are addressed to info-nets@think.com. Questions that include
  413. as much information as possible, such as full headers of bounced mail
  414. messages, etc. are most likely to be answered. Archives of info-nets
  415. questions and answers are kept on some Bitnet servers, such as the one
  416. at Bitnic. Users can request these files using the interactive netserv
  417. or  listserv commands outlined in the beginning of this document. A list
  418. of the archives can be obtained with the interactive command:
  419.                                                                     
  420. $ send  listserv@Bitnic get notebook filelist
  421.  
  422. tell listserv at bitnic get notebook filelist
  423.  
  424. This returns a list of all the archive files stored on Bitnic. Each
  425. archive or notebook is named infonets logXXXX where XXXX is a date like
  426. 8909. For example, the infonets archive for September 1989 can be
  427. obtained with the interactive command:
  428.                                                                    
  429. $ send listserv@Bitnic get infonets log8909
  430.  
  431. tell listserv at Bitnic get infonets log8909  
  432.  
  433. In addition, the archives can be searched using the database server at
  434. Bitnic. A text search for the string china would be formatted as
  435. follows:
  436.  
  437. $ send  database@Bitnic find text China (in infonets
  438.  
  439. tell listserv at Bitnic find text China (in infonets
  440.  
  441.  
  442. Remember, internet hosts without direct Bitnet access can send mail
  443. commands to database. To do this they must register with database and
  444. receive a password. This procedure, as well as general database help, is
  445. provided by sending mail to database@Bitnic with the command
  446. "help" in the first line of text. The listserv database server, Ldbase,
  447. can be also be accessed via E-mail (see section  I.3.) and used to search
  448. infonets archives.
  449.  
  450. V. Further information. Several books have recently been published which
  451. provide information about networks, gateways, addresses and network
  452. resources. They are listed below.
  453.      
  454. The Matrix:  Computer Networks and Conferencing Systems Worldwide
  455. by John S. Quarterman, Digital Press, 1989.     
  456.      
  457. Users' Directory of Computer Networks
  458. by Tracy Lynn LaQuey, Digital Press, 1989.
  459.      
  460. A Guide to Electronic Mail Networks and Addressing
  461. by Donnalyn Frey and Rick Adams, O'Reilly & Associates, 1989.
  462.      
  463.  
  464.  
  465.  
  466.  
  467.